
using CStock;
using System;
using System.Diagnostics;

using NUnit.Framework;
namespace TestCases.StockData
{
	

	/// <summary>Some simple Tests.</summary>
	/// 
	[TestFixture]
    public class TraderEconomyProfileTest : ProgramContext_TestCases
	{

        private const string profileName = "EconomyTest";
        
       
        ITradeEconomyProfileFactory tradeEconomyProfileFactory;

        [SetUp]
        public void TraderEconomyProfileTest_Setup()
		{
            tradeEconomyProfileFactory = new TradeEconomyProfileFactory();
            tradeEconomyProfileFactory.Create(profileName);
        }



        [Test]
        public void TradeSystem_Create_And_Save()
        {
            Assert.IsTrue(tradeEconomyProfileFactory.Serialize());
        }
        [Test]
        public void Create_Save_TestData()
        {
            Assert.IsTrue(tradeEconomyProfileFactory.Create_TestData());
            Assert.IsTrue(tradeEconomyProfileFactory.Serialize());
        }

      

        [Test]
        public void DeSerialize()
        {
            Assert.IsTrue(tradeEconomyProfileFactory.DeSerialize());
        }
	}

	
}